package com.kuai.todo1.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.kuai.todo1.mapper.StudentMapper;
import com.kuai.todo1.model.Student;

@Service
public class StudentService {

    @Autowired
    private StudentMapper studentMapper;

    public List<Student> getAllStudents() {
        return studentMapper.getAllStudents();
    }

    public void saveStudent(Student student) {
        studentMapper.insertStudent(student);
    }
}
